"use strict";!function(e){e(document).ready(function(){e(document).on("click",".wq-quiz-flip .card",function(){e(this).find(".front").length&&e(this).find(".back").length&&e(this).closest(".wq_singleQuestionWrapper").toggleClass("is-flipped")}),e(document).on("click",".wq-quiz-flip .wq-embed-toggle-btn",function(t){t.preventDefault(),e(this).parent().toggleClass("active").next().slideToggle("fast")}),e(document).on("click",".wq-share-fb",function(t){if("undefined"!=typeof FB){t.preventDefault();var e=t.currentTarget.dataset.url;FB.ui({method:"share",href:e},function(t){console.log(t)})}}),e(document).on("click",".wq-share-tw",function(t){t.preventDefault();var e=t.currentTarget.dataset.url;window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(e),"_blank","width=500, height=300")}),e(document).on("click",".wq-share-vk",function(t){t.preventDefault();var e=t.currentTarget.dataset.url;window.open("http://vk.com/share.php?url="+encodeURIComponent(e),"_blank","width=500, height=300")})})}((wpQuiz,jQuery));